<?php


namespace app\admin\validate;

class Login extends Base
{
    protected $rule =   [
        'account'  => 'require|regex:[a-zA-Z0-9]+',
        'password'  => 'require',
    ];

    protected $message  =   [
        'account.require' => '用户名必须',
        'account.regex' => '用户名仅支持大小写字母 数字',
        'password.require' => '密码必须',
    ];


    protected $scene = [
        'in'  =>  ['account','password'],
    ];
}